package com.freecloud.javabasics.network.rpc.server.provider;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: maomao
 * @Date: 2020-03-15 21:34
 */
public class ServerApp {

//    public static void main(String[] args) {
//        IHelloService helloService = new IHelloServiceImpl();
//        RpcProxyServer proxyServer = new RpcProxyServer();
//
//        proxyServer.publisher(helloService,8080);
//    }

    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        ((AnnotationConfigApplicationContext) context).start();
    }
}
